package web.controller.common;

import common.consts.ContentType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import service.RecruitmentTypeService;
import service.ServiceResponse;
import web.Routes;
import web.controller.Base;

/**
 * Created by tyler on 23/6/15.
 */
@RestController
@RequestMapping(Routes.Common.RECRUITMENT_TYPE)
public class RecruitmentType extends Base {

    @Autowired
    private RecruitmentTypeService recruitmentTypeService;

    @RequestMapping(method = RequestMethod.GET, produces = ContentType.JSON)
    public ServiceResponse get() {
        return recruitmentTypeService.getTypeList();
    }
}
